<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<center>
		<h1>用户列表</h1>
		<a href="<%=basePath%>view/system/user_add.jsp">增加</a>
		<hr>
		<table width="80%" border="1">
			<tr>
				<td>用户ID</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>性别</td>
				<td>爱好</td>
				<td>登录名</td>
				<td>创建时间</td>
				<td colspan="2">操作</td>
			</tr>
			<c:forEach items="${userList }" var="user">
				<tr>
					<td>${user.userId }</td>
					<td>${user.name }</td>
					<td>${user.age }</td>
					<td>${user.sex }</td>
					<td>${user.hobby }</td>
					<td>${user.loginName }</td>
					<td>${user.createTime }</td>
					<td><a
						href="<%=basePath%>userController/delete.do?userId=${user.userId }">删除</a></td>
					<td><a
						href="<%=basePath%>userController/updateUI.do?userId=${user.userId }">修改</a></td>
				</tr>
			</c:forEach>
		</table>
	</center>
</body>
</html>